how to make flowchart from code